// +---------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +---------------------------------------------------------------------
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------

import BasicLayout from '@/components/main';

const pre = 'project_';

export default {
  path: '/admin/project',
  name: 'project',
  header: 'project',
  redirect: {
    name: `${pre}list`,
  },
  component: BasicLayout,
  children: [
    {
      path: 'list',
      name: `${pre}list`,
      meta: {
        auth: ['admin-project-list'],
        title: '项目管理',
      },
      component: () => import('@/pages/project/project/index'),
    },
	{
	  path: 'detail/:id?',
	  name: `${pre}detail`,
	  meta: {
	    auth: ['admin-project-detail'],
	    title: '项目详情', 
	  },
	  component: () => import('@/pages/project/project/detail/index'),
	},
	{
	    path: 'review',
	    name: `${pre}review`,
	    meta: {
	      auth: ['admin-project-review'],
	      title: '工时审核',
	    },
	    component: () => import('@/pages/project/review/index'), 
	}
  ],
};
